<?php

namespace App\Http\Logic\admin;

use App\Model\UserModel;

class UserLogic{

    //获取全部列表
    public function getUserListLogic(){
        $user_model = new UserModel();
        return $user_model->getAllList();
    }
    //获取指定用户信息
    public function getUserList($uid){
        $user_model = new UserModel();
        return $user_model->find_info(true,$uid);
    }
    // 根据条件获取用户信息
    public function getUserConditionInfo($data){
        $user_model = new UserModel();
        $data = [];
        return $user_model->getConditionList($data);
    }
    // 获取登陆用户信息
    public function userInfoLogic($date){
        $user_model = new UserModel();
        return $user_model->find_info($date);
    }
}
